﻿@model MiniBottles.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}


<section id="loginForm" class="white-content">
    @if (MiniBottles.Models.Helper.IsPL(Session["Culture"]))
    {
        <h5 class="title">Użyj swojego konta aby się zalogować</h5>
    }
    else
    {
        <h5 class="title">Use a local account to log in</h5> 
    }
    <div class="greystrip"></div>
    <div class="whitestrip"></div>

    @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)

  
        <ol>
            <li>
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </li>
            <li>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </li>
            <li>
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
            </li>
        </ol>
        <input type="submit" value="@AppResource.Login"class="btn" />

    }
</section>

<div class="image-content"></div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
